//
//  SASelectMerchantsCell.m
//  yidiantong
//
//  Created by 黄志刚 on 2020/10/16.
//

#import "SASelectMerchantsCell.h"

@interface SASelectMerchantsCell ()

@property (nonatomic, strong) UIView *line;

@end

@implementation SASelectMerchantsCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initUI];
    }
    return self;
}

-(void)initUI {
    [self.contentView addSubview:self.titleLab];
    [self.contentView addSubview:self.line];
}

-(UILabel *)titleLab {
    if (!_titleLab) {
        _titleLab = [[UILabel alloc] initWithFrame:SARectMake(30, 0, 300, 40)];
        _titleLab.font = kFont(14);
        _titleLab.textColor = kGrayColor;
    }
    return _titleLab;
}

- (UIView *)line {
    if (!_line) {
        _line = [[UIView alloc] initWithFrame:SARectMake(0, 39, kBaseScreenWidth, 1)];
        _line.backgroundColor = kLineColor;
    }
    return _line;
}

@end
